using System;
using System.Collections.Generic;
using Domain.Entities;
using Domain.Enums;
using Mestedur.ViewModels;
using System.Linq;
namespace Mestedur.Models
{
    public static class ModelConverter
    {
        public static Chapter ConvertChapterViewModelToChapter(ChapterViewModel viewModel)
        {
            return new Chapter()
                       {
                           Id = viewModel.Id,
                           ChapterName = viewModel.ChapterName,
                           ChapterData = viewModel.ChapterData
                       };
        }
    }
}